/***************************************************************************
 * This routine is taken from the book "The Data Compression Book 2nd edition" 
 * I corrected some printing error and added the routine to clean up the tree
 *                                                    modified by nalsas dai
 ***************************************************************************/
/************************ Start of ERRHAND.C ***********************/
 
#include <stdio.h> 
#include <stdlib.h> 
#include <stdarg.h> 
#include "errhand.h" 
 
void fatal_error( char *fmt, ... ) 
{ 
 
     va_list argptr; 
 
     va_start( argptr, fmt ); 
     printf( "Fatal error: " ); 
     vprintf( fmt, argptr  ); 
     va_end( argptr ); 
     exit( -1 ); 
} 
 
/************************ End of ERRHAND.C ***********************/ 
